﻿using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Core.Services;
using TL_Cloud.Models.BookShop;

namespace TL_Cloud.ViewModels.BookShop.BKTypeInfo
{
    public class BKTypeInfoPropertyMapping : PropertyMapping<BKTypeInfoResource, Bk_TypeInfo>
    {
        public BKTypeInfoPropertyMapping() : base(
          new Dictionary<string, List<MappedProperty>>(StringComparer.OrdinalIgnoreCase)
          {
              [nameof(BKTypeInfoResource.BktypeId)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_TypeInfo.BktypeId),Revert=false }
              },
              [nameof(BKTypeInfoResource.BktypeName)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_TypeInfo.BktypeName),Revert=false }
              },
              [nameof(BKTypeInfoResource.EnabledMark)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_TypeInfo.EnabledMark),Revert=false }
              },
              [nameof(BKTypeInfoResource.Remark)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_TypeInfo.Remark),Revert=false }
              },
              [nameof(BKTypeInfoResource.Sort)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_TypeInfo.Sort),Revert=false }
              },
          })
        {
        }
    }
}
